package com.websense.training.books

import com.itextpdf.text.Document
import com.itextpdf.text.Paragraph
import com.itextpdf.text.pdf.PdfPCell
import com.itextpdf.text.pdf.PdfPTable
import com.itextpdf.text.pdf.PdfWriter
import java.io.FileOutputStream
import com.itextpdf.text.FontFactory
import com.itextpdf.text.Font
import com.itextpdf.text.BaseColor
import com.itextpdf.text.Rectangle
import com.itextpdf.text.Element
import com.itextpdf.text.PageSize
import com.itextpdf.text.Chunk

object BuildTocMain {


  val staticData = List("Websense® TRITON Solution Overview",
    "Introduction to Data Security Suite",
    "DSS Product Architecture",
    "Installation and Initial Setup",
    "Understanding Policies",
    "Stateful DLP",
    "Websense® TRITON Solution Overview",
    "Introduction to Data Security Suite",
    "DSS Product Architecture",
    "Installation and Initial Setup",
    "Understanding Policies",
    "Stateful DLP",
    "Websense® TRITON Solution Overview",
    "Introduction to Data Security Suite",
    "DSS Product Architecture",
    "Installation and Initial Setup",
    "Understanding Policies",
    "Stateful DLP",
    "Websense® TRITON Solution Overview",
    "Introduction to Data Security Suite",
    "DSS Product Architecture",
    "Installation and Initial Setup",
    "Understanding Policies",
    "Stateful DLP")

  def main(args: Array[String]): Unit = {
        val bt = new BuildToc("resources/toc_tmp.pdf")
        //bt.processStatic(staticData)

  }

}
